﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataTime
{
	class Program
	{
		static void Main(string[] args)
		{
			Console.WriteLine("Insert day of birthday in follow format: dd/MM/YYYY");
			DateTime dt = DateTime.Parse(Console.ReadLine());
			int[] day = new int[7];

			for (int i = 0; i < 100; i++)
			{
				DateTime shifteddate = dt.AddYears(i);
				//day[(int)shifteddate.DayOfWeek]++;
				switch (shifteddate.DayOfWeek)
				{
					case DayOfWeek.Sunday:
						day[0]++;
						break;
					case DayOfWeek.Monday:
						day[1]++;
						break;
					case DayOfWeek.Tuesday:
						day[2]++;
						break;
					case DayOfWeek.Wednesday:
						day[3]++;
						break;
					case DayOfWeek.Thursday:
						day[4]++;
						break;
					case DayOfWeek.Friday:
						day[5]++;
						break;
					case DayOfWeek.Saturday:
						day[6]++;
						break;
				}
			}
			for (int i = 0; i < day.Length; i++)
			{
				string dayOfWeek = "";
				switch (i)
				{
					case 0: dayOfWeek = "sunday"; break;
					case 1: dayOfWeek = "monday"; break;
					case 2: dayOfWeek = "tuesday"; break;
					case 3: dayOfWeek = "wednesday"; break;
					case 4: dayOfWeek = "thursday"; break;
					case 5: dayOfWeek = "friday"; break;
					case 6: dayOfWeek = "saturday"; break;
				}
				Console.WriteLine("On {0} were {1} birthdays", dayOfWeek, day[i]);
				//Console.WriteLine("On " + (DayOfWeek)i + " were " + day[i] + " birthdays");
			}

			Console.ReadLine();
		}
	}
}
